package com.example.socket;

import com.example.socket.server.NettyServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.net.InetSocketAddress;

@SpringBootApplication
public class NettyDemoApplication implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(NettyDemoApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		NettyServer nettyServer = new NettyServer();
		nettyServer.start(new InetSocketAddress("127.0.0.1", 8090));
	}
}
